package com.java.base.exercise.designmode.responsibilitychain;

/**
 * @Author RenPu
 * @Date 2022/11/12 20:19
 * @Version 1.0
 * @Description:
 **/
public class ClientMain {

    public static void main(String[] args) {

        //责任链1
        ConHandler1 conHandler1 = new ConHandler1(null);

        //责任链2
        ConHandler2 conHandler2 = new ConHandler2(conHandler1);

        Reque reque1 = new Reque(RequeType.TYPE1,"1111111111");
        conHandler2.handlerRequest(reque1);
        Reque reque2 = new Reque(RequeType.TYPE2,"22222222222222");
        conHandler2.handlerRequest(reque2);

    }

}
